def frange(start, stop, increment):
    begin = start
    while begin < stop:
        begin += increment
        yield begin

if '__main__' == __name__:
    for i in frange(1, 5, 0.5):
        print(i)
